/**
 * @param {number[][]} points
 * @return {number}
 */
var maxWidthOfVerticalArea = function (points) {
  let count = 0
  points.sort((a, b) => a[0] - b[0])
  for (let i = 1; i < points.length; i++) {
    count = Math.max(points[i][0] - points[i - 1][0], count)
  }
  return count
}


maxWidthOfVerticalArea([[3,1],[9,0],[1,0],[1,4],[5,3],[8,8]])